package com.tcu.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.tcu.order.entity.Order;
import com.tcu.order.entity.OrderItem;
import com.tcu.order.entity.bo.OrderBo;

import java.util.List;

public interface IOrderService extends IService<Order> {
    OrderBo getOrderInfoById(String orderId);

    void saveOrderWithItems(Order o, List<OrderItem> itemList);

    void deleteOrder(String orderId);

    void updateOrder(Order o, List<OrderItem> itemList);

    void changeStatus(String orderId, Integer value);

    List<OrderBo> getChildrenOrder(String orderParentId);

    boolean hasChildren(String orderId);

    boolean endOrder(String orderId, String workerId);

    void formalReceive(String orderId, String workerId);
}
